package zz.demo.springCloud.wechat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zz.demo.springCloud.wechat.builder.WeChatFeignBuilder;
import zz.demo.springCloud.wechat.entity.WeChatApp;
import zz.demo.springCloud.wechat.service.WeChatFeignService;
import zz.demo.springCloud.wechat.vo.WeChatTextVO;

/**
 * Created by zhangzheng on 2017-11-15.
 */
@Service
public class WeChatFeignServiceImpl implements WeChatFeignService {

    @Autowired
    private WeChatFeignBuilder weChatFeignBuilder;

    @Override
    public String sendWeChatText(WeChatApp weChatApp, WeChatTextVO weChatTextVO){
        return weChatFeignBuilder.securitySelector(weChatApp).receivingWeChatText(weChatTextVO);
    }
}
